/**
 * The service entry function
 */


export default class BaseService {

	constructor() {

		this.init();
	
	}
	init() {}
	/**
	 * [Add description]
	 */
	Add(params) {
		return this.getDao().Add(params, arguments[arguments.length-1]);
	}

	UpdateById(params) {
		return this.getDao().UpdateById(params, arguments[arguments.length-1]);
	}

	DeleteById(id) {
		return this.getDao().DeleteById(id, arguments[arguments.length-1]);
	}

	selectById(id) {
		return this.getDao().selectById(id, arguments[arguments.length-1]);
	}

	Search(params) {
		return this.getDao().Search(params, arguments[arguments.length-1]);
	}

	async Count(params = {}) {

		return await this.getDao().Count(params);
	}

	SelectPage(params, page, size) {
		return this.getDao().selectPage(params, page, size, arguments[arguments.length-1]);
	}
}